﻿@model Janus.Mes.VO.SysConfigVO

@{
    Layout = null;
    var i = 1;
    ViewBag.ViewTitle = "新增--架机计划";
}
<style type="text/css">
    ul.rightTools {
        float: right;
        display: block;
    }

        ul.rightTools li {
            float: left;
            display: block;
            margin-left: 5px;
        }
</style>
<script type="text/javascript">
    function kkk() {
        var json = arguments[0], result = "";
        $(json.items).each(function (i) {
            result += "<p>name:" + this.name + " value:" + this.value + " text: " + this.text + "</p>";
        });
        $("#resultBox").html(result);
    }
</script>

<div class="pageContent">
    <form method="post" action="Manufacturing/InstallMachinePlans/Create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
          onsubmit="return validateCallback(this, dialogAjaxDone);">
        @Html.ValidationSummary(true)
        <div class="pageHeader">
            <div class="searchBar">
                <table class="searchContent">
                    <tr>
                        <td>
                            设备类别：
                        </td>
                        <td>
                            <select class="textInput">
                                <option>请选择设备类别</option>
                                <option>机台</option>
                                <option>刀具</option>
                                <option>夹具</option>
                            </select>
                        </td>
                        <td>
                            设备组名称：
                        </td>

                        <td>
                            @Html.TextBoxFor(sysConfig => sysConfig.Title, new { @class = "required" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                        </td>
                        <td>架机计划描述</td>
                        <td>@Html.TextBox("Remark", "", new { @class = "required"})</td>
                    </tr>
                    <tr>
                        <td>
                            预计安装时间：
                        </td>
                        <td>
                            @Html.TextBox("CreateDate", "", new { @class = "date readonly required", datefmt = "yyyy-MM-dd HH:mm:ss" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.CreateDate)
                        </td>
                        <td>
                            预计安装完成时间：
                        </td>

                        <td>
                            @Html.TextBox("test", "", new { @class = "date readonly required", datefmt = "yyyy-MM-dd HH:mm:ss" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                        </td>
                        <td>
                            预计卸载时间：
                        </td>

                        <td>
                            @Html.TextBox("test", "", new { @class = "date readonly required", datefmt = "yyyy-MM-dd HH:mm:ss" })
                            @Html.ValidationMessageFor(sysConfig => sysConfig.Title)
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="tabs">
            <div class="tabsContent">
                <div>
                    <div layoutH="120" style="float:left; display:block; overflow:auto; width:240px; border:solid 1px #CCC; line-height:21px; background:#fff">
                        <ul class="tree treeFolder treeCheck expand" oncheck="kkk">
                            <li>
                                <a>上角自动化车间</a>
                                <ul>
                                    <li><a tname="name" tvalue="value1" checked="true">S01</a></li>
                                    <li><a tname="name" tvalue="value2">S02</a></li>
                                    <li><a tname="name" tvalue="value3">S03</a></li>
                                    <li><a tname="name" tvalue="value4">S04</a></li>
                                    <li><a tname="name" tvalue="value5">S05</a></li>
                                </ul>
                            </li>

                            <li>
                                <a tname="name" tvalue="test1">东城自动化车间</a>
                                <ul>
                                    <li>
                                        <a tname="name" tvalue="test1.1">东城自动化车间1线</a>
                                        <ul>
                                            <li><a tname="name" tvalue="test1.1.1" checked="true">A01</a></li>
                                            <li><a tname="name" tvalue="test1.1.2" checked="false">A02</a></li>
                                            <li><a tname="name" tvalue="test1.1.2" checked="false">A03</a></li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a tname="name" tvalue="test1.1">东城自动化车间2线</a>
                                        <ul>
                                            <li><a tname="name" tvalue="test1.1.1" checked="true">B01</a></li>
                                            <li><a tname="name" tvalue="test1.1.2" checked="false">B02</a></li>
                                            <li><a tname="name" tvalue="test1.1.2" checked="false">B03</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                    <div>
                        <div id="gdBox" class="unitBox" style="margin-left:246px;">
                            <div class="MyPanel">
                                <table class="gridTbody list" width="100%" layouth="240">
                                    <thead>
                                        <tr class="header">
                                            <th>序号 </th>
                                            <th>架机计划编号</th>
                                            <th>工作中心编码</th>
                                            <th>工作中心名称</th>
                                            <th>机台编号</th>
                                            <th>设备组编号</th>
                                            <th>设备组名称</th>
                                            <th>设备编号</th>
                                            <th>设备安装状态</th>
                                            <th>预计安装时间</th>
                                            <th>预计安装完成时间</th>
                                            <th>预计卸载时间</th>
                                            <th>创建者</th>
                                            <th>创建时间</th>
                                            <th>操作项</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr target="PlansId" rel="7">
                                            <td>1 </td>
                                            <td>架机计划编号</td>
                                            <td>工作中心编码</td>
                                            <td>工作中心名称</td>
                                            <td>机台编号</td>
                                            <td>设备组编号</td>
                                            <td>设备组名称</td>
                                            <td>设备编号</td>
                                            <td>设备安装状态</td>
                                            <td>预计安装时间</td>
                                            <td>预计安装完成时间</td>
                                            <td>预计卸载时间</td>
                                            <td>创建者</td>
                                            <td>创建时间</td>
                                            <td><a title="删除" target="ajaxTodo" href="Manufacturing/InstallMachinePlans/ajaxDelete/3" class="btnDel">删除</a></td>
                                        </tr>
                                        <tr target="PlansId" rel="8">
                                            <td>2</td>
                                            <td>架机计划编号</td>
                                            <td>工作中心编码</td>
                                            <td>工作中心名称</td>
                                            <td>机台编号</td>
                                            <td>设备组编号</td>
                                            <td>设备组名称</td>
                                            <td>设备编号</td>
                                            <td>设备安装状态</td>
                                            <td>预计安装时间</td>
                                            <td>预计安装完成时间</td>
                                            <td>预计卸载时间</td>
                                            <td>创建者</td>
                                            <td>创建时间</td>
                                            <td><a title="删除" target="ajaxTodo" href="Manufacturing/InstallMachinePlans/ajaxDelete/2" class="btnDel">删除</a></td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="tabsFooter">
                <div class="tabsFooterContent">
                    @Html.Partial("Operation", Model)
                </div>
            </div>
        </div>
    </form>
    @Html.Partial("FormButtonBar")
</div>


